﻿@using Atomic.Core.Security;

@model Atomic.Plugins.Users.Domain.Admin.AddRoleModel

@{
    ViewBag.Title = "增加角色 - 角色管理";
}

<form action="/admin/user/role/add" method="post">
    <table>
        <tr>
            <td>编号：</td>
            <td>@Html.TextBoxFor(model => model.Id) @Html.ValidationMessageFor(model => model.Id)</td>
        </tr>
        <tr>
            <td>名称：</td>
            <td>@Html.TextBoxFor(model => model.Name) @Html.ValidationMessageFor(model => model.Name)</td>
        </tr>
        <tr>
            <td>显示名称：</td>
            <td>@Html.TextBoxFor(model => model.DisplayName) @Html.ValidationMessageFor(model => model.DisplayName)</td>
        </tr>
        <tr>
            <td>类型：</td>
            <td>@Html.RadioButtonFor(model => model.Type, RoleType.Normal)普通 @Html.RadioButtonFor(model => model.Type, RoleType.Admin)管理员</td>
        </tr>
        <tr>
            <td colspan="2">
                <input type="submit" value="保存" />
            </td>
        </tr>
    </table>
</form>
<a href="/admin/user/role/list/1">返回</a>